TPromiseType
A transactional promise that blocks readers until it is completed.
Specification
Kind
Type
Members
5
Examples
0
makeSignature
TPromise.make
succeedSignature
TPromise.succeed value promise
failSignature
TPromise.fail error promise
awaitSignature
TPromise.await promise
pollSignature
TPromise.poll promise
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| make | TPromise.make | Creates a pending transactional promise. |
| succeed | TPromise.succeed value promise | Completes the promise with a value; returns false when it was already completed. |
| fail | TPromise.fail error promise | Completes the promise with a typed error; returns false when it was already completed. |
| await | TPromise.await promise | Returns the completed value, retrying until the promise is completed. |
| poll | TPromise.poll promise | Returns the completed value without retrying, or None when still pending. |

